package com.example.dao.user;

import java.util.List;
import java.util.Map;

import com.example.entity.user.User;
import com.jueyue.dao.annotation.IDao;
import com.jueyue.dao.annotation.query.Param;
import com.jueyue.dao.annotation.sql.SQL;

@IDao
public interface IUserDao {
	
	public User getUserById(Map<String,Object> map);
	
	public User getUserById(@Param("id") String id);

	public User getUserByIdAndAge(@Param("id")String id,@Param("age") int age);

	@SQL("select * from user u where u.sex = ${sex}")
	public List<User> queryAllBySex(@Param("sex")int sex);

}
